package com.anXin.model.mall.pojos;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("anxin_mall_order")
public class Order {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id",type = IdType.ID_WORKER)
    private Long id;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("user_id")
    private Long userId;

    /**
     * 货物id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 收件人姓名
     */
    @TableField("name")
    private String name;

    /**
     * 收件人电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 收件人地址
     */
    @TableField("address")
    private String address;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;



}
